<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:p="http://primefaces.org/ui">

<h:head>

</h:head>

<h:body>
	<ui:include src="menu.xhtml" />

	<h:form id="formListaCliente" rendered="true">
		<center>
			<h:panelGrid columns="2">

				<h:outputLabel for="txtFiltroCpf" value="CPF" styleClass="createStaticField" />
				<h:outputLabel for="txtFiltroNome" value="Nome" styleClass="createStaticField" />

				<h:inputText id="txtFiltroCpf" styleClass="inputText" size="30" maxlength="30" />
				<h:inputText id="txtFiltroNome" styleClass="inputText" size="40" maxlength="30" />

			</h:panelGrid>

			<p:commandButton value="Pesquisar" styleClass="button" update="lista" id="listagemBtPesquisar" />
			<p:commandButton styleClass="button" type="reset" value="Limpar" update="@form" id="btLimpar" />
		</center>



		<p:separator style="width:100%" />

		<h:commandLink id="linkIncluir" action="createCliente" immediate="true">
			<p:graphicImage height="35px" value="/images/iconAdd.png" title="Incluir Novo">
			</p:graphicImage>
		</h:commandLink>

		<p:dataTable id="lista" var="cliente" paginator="true" rows="20">

			<p:column style="text-align:center; width: 10%" rendered="true">
				<f:facet name="header">CPF</f:facet>
				<h:outputText value="TESTE" />
			</p:column>

			<p:column style="text-align:center; width: 30%" rendered="true">
				<f:facet name="header">Nome</f:facet>
				<h:outputText value="TESTE" />
			</p:column>

			<p:column style="text-align:center; width: 30%" rendered="true">
				<f:facet name="header">E-Mail</f:facet>
				<h:outputText value="TESTE" />
			</p:column>

			<p:column style="text-align:center; width: 10%" rendered="true">
				<f:facet name="header">Fone</f:facet>
				<h:outputText value="TESTE" />
			</p:column>

			<p:column style="text-align:center; width: 10%" rendered="true">
				<f:facet name="header">Celular</f:facet>
				<h:outputText value="TESTE" />
			</p:column>

			<p:column style="text-align:center; width: 10%">
				<p:commandLink id="linkEditar">
					<p:graphicImage height="20px" style="border:0;" value="/images/iconeEditar.png" title="Editar" />
				</p:commandLink>

				<p:commandLink id="linkVisualizar">
					<p:graphicImage height="20px" style="border:0;" value="/images/iconeVisualizar.png" title="Exibir" />
				</p:commandLink>

				<h:commandLink id="linkExcluir" onclick="return confirm('Confirma Exclusão ?');" update="lista">
					<p:graphicImage height="20px" style="border:0;" value="/images/iconeLixo.png" title="Excluir" />
				</h:commandLink>
			</p:column>
		</p:dataTable>
	</h:form>
</h:body>
</html>
